#include "Card.h"
#include <stdio.h>

// Creates a type of card that is meant for exchanging money
Card::Card(int a_type, char* a_flavorText, int a_amount)
{
	m_type = a_type;
	m_flavorText = a_flavorText;
	m_amount = a_amount;
}

// Creates a pay-per-house type of card
Card::Card(int a_type, char* a_flavorText, int a_amount, int a_secondaryAmount)
{
	m_type = a_type;
	m_flavorText = a_flavorText;
	m_amount = a_amount;
	m_secondaryAmount = a_secondaryAmount;
}

// Creates a type of card that is meant for moving the player.
Card::Card(int a_type, char* a_flavorText, char* a_destination)
{
	m_type = a_type;
	m_flavorText = a_flavorText;
	m_destination = a_destination;
}

void Card::printCard(short a_x, short a_y)
{
	gotoXY(a_x, a_y);
	printf("%s\n", m_flavorText);
}

int Card::getAmount(){	return m_amount;	}
int Card::getSecondaryAmount() {	return m_secondaryAmount;	}
int Card::getType(){	return m_type;	}
char* Card::getDestination() {	return m_destination;	}
